import { request } from 'ice';

/**
 * 获取管理员列表
 * @returns
 */
export function getAdminUsersList(): Promise<
  {
    _id: string;
    userName: string;
    password: string;
  }[]
> {
  return request.get('/adminUser/AdminUsersList');
}
/**
 * 编辑管理员
 * @param id
 * @param value
 * @returns
 */
export function editAdminUser(value) {
  return request.put('/adminUser/editAdminUser', value);
}

/**
 * 删除管理员
 * @param id
 * @returns
 */
export function removeAdminUser(id: string) {
  return request.delete(`/adminUser/removeAdminUser/${id}`);
}
